//
//  SuperPlayerHelpers.h
//  Pods
//
//  Created by Steven Choi on 2020/3/20.
//

#ifndef CTSuperPlayerHelpers_h
#define CTSuperPlayerHelpers_h

// player的单例
#define CTSuperPlayerShared [CTSuperPlayerSharedView sharedInstance]
// 屏幕的宽、高
#define kCTSuperPlayerScreenWidth  [[UIScreen mainScreen] bounds].size.width
#define kCTSuperPlayerScreenHeight [[UIScreen mainScreen] bounds].size.height

// 颜色值RGB
#define CTSuperPlayerRGBA(r, g, b, a) [UIColor colorWithRed:r / 255.0f green:g / 255.0f blue:b / 255.0f alpha:a]

// 图片路径
#define CTSuperPlayerImage(file) [UIImage imageNamed:[@"CTSuperPlayer.bundle" stringByAppendingPathComponent:file]]

#define IsIPhoneX (kCTSuperPlayerScreenHeight >= 812 || kCTSuperPlayerScreenWidth >= 812)

// 小窗单例
#define CTSuperPlayerWindowShared [CTSuperPlayerWindow sharedInstance]

#define TintColor CTSuperPlayerRGBA(252, 89, 81, 1)

#define LOG_ME NSLog(@"%s", __func__);

#endif /* CTSuperPlayerHelpers_h */
